from launch import LaunchDescription
import launch_ros.actions
from ament_index_python.packages import get_package_share_directory
import os.path

def generate_launch_description():
    return LaunchDescription([
        launch_ros.actions.Node(
            package = "hik_rgbd", node_executable = "image_pipeline_all_in_one", output = "screen"
        ),
        launch_ros.actions.Node(
            package = "rviz2", node_executable = "rviz2", arguments = ['-d' + os.path.join(get_package_share_directory('hik_rgbd'), 'config', 'hik_camera.rviz')], output = "screen"
        ),
    ])